package org.example.design.decorator;

import org.example.design.decorator.itf.impl.LoginSsoDecorator01;

/**
 * @Classname Test
 * @Description TODO
 * @Date 2020/11/5 9:55 上午
 * @Created by xiangjd
 */
public class Test {
    public static void main(String[] args) {
        LoginSsoDecorator01 loginSsoDecorator01 = new LoginSsoDecorator01();
        String requset = "1successhuahua";
        boolean suessess = loginSsoDecorator01.prehandle(requset, "ewcdqwt40liuiu", "t");
        System.out.println("登录校验: " + requset + (suessess ? "放行" : "拦截"));
    }
}
